#include "SessionMgr.h"

#ifdef _DEBUG
#pragma comment(lib, "libprotobufD.lib")
#else
#pragma comment(lib, "libprotobuf.lib")
#endif 

void CSessionMgr::on_accept( utility::network::session * s)
{
    CSession * pSession = m_sessionPools.construct(s);
    s->set_event_handler(pSession);
}

void CSessionMgr::Recycle( CSession * pSession)
{
    m_sessionPools.destroy(pSession);
}
